<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link src=""></head>
</head>
<body>

<script>
    function f() {
        $.ajax({
            url: '/validate/sms',
            data: {
                mobile: '11111111111',
                smsCode: 'code'
            },
            beforeSend: function (request) {
                request.setRequestHeader("Authorization", "Basic YmJzOmZsay1vYXV0aA==");
                request.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
            },
            success: function (data) {
                console.log(data)
            },
            error: function (da) {
                console.log(data);

            }

        });

    };
</script>
</body>
</html>